/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jaywalkable.vkeyboard.impl;

import com.jaywalkable.vkeyboard.VKeyboard;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

/**
 * This class implements <code>VKeyboard</code>. Any subclass of this class
 * should add its own keyboard layouts to the instance variable <code>layout</code>.
 * 
 * @author Rubel Ahammad
 */
public class VKeyboardImpl implements VKeyboard {

    /** Holds keyboard layout.*/
    protected final Map<Character, Character[]> layout = new HashMap<Character, Character[]>();

    protected VKeyboardImpl() {
    }

    /**
     * Returns unmodifiable <code>Map</code> of keyboard layout.
     * 
     * @return Returns unmodifiable <code>Map</code> of keyboard layout.
     */
    public final Map<Character, Character[]> getLayout() {
        return Collections.unmodifiableMap(layout);
    }
}
